xenstat: Fixes for 20528:e6e3bf767d16 (stats for dom0 network bonding)
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Dec 2009 13:45:35 +0000 (13:45 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Dec 2009 13:45:35 +0000 (13:45 +0000)
commit80d4e9ca778762a4911977e7a90a1299b00a8629
tree504db88852d4b3de21a6f7d8d206b65e2aced95d
parentfe356defec5b50c1faab672bf488d68c9c996917
xenstat: Fixes for 20528:e6e3bf767d16 (stats for dom0 network bonding)

In above c/s I introduced dom0 statistics for case we use network
bonding. The indentation was not good for xenstat C codebase and also
some modifications were done to the logic, mainly not using the parsed
variables we don't care about (as we care only about
{tx|rx}{bytes,packets,errs,drops} and no other variable from
/proc/net/dev) by passing NULLs to variables we don't care about. Also
dom0 statistics alteration was fixed to include {tx|rx}{drop,errs} for
dom0 (previous version of my patch was not having this code applied).

Signed-off-by: Michal Novotny <minovotn@redhat.com>
tools/xenstat/libxenstat/src/xenstat_linux.c